package com.quanxiaoha.weblog.web.model.vo.article;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AddCommentReqVO {
    @NotNull(message = "文章ID不能为空")
    private Long articleId;

    private Long parentId;//父id

    @NotBlank(message = "评论内容不能为空")
    private String content;

    @NotBlank(message = "昵称不能为空")
    private String nickname;
}